#ifndef L1_D202406_H
#define L1_D202406_H
#include <iostream>
using namespace std;

// Q1 奇迹
void Q1() {
  cout << "Miracles happen every day." << endl;
}

// Q2 九牛一毛
void Q2() {
  int n;
  cin >> n;
  cout << n / 15 << n / 20 << n * 10 << endl;
}

// Q3 A 除以 B

#include <iomanip>
void Q3() {
  float a, b;
  cin >> a >> b;
  float c;
  if (b == 0) {
    cout << a << '/' << b << '=' << "Error" << endl;
  } else {
    c = a / b;
    if (b < 0) {
      cout << a << "/(" << b << ")=";
      cout << fixed << setprecision(2) << c << endl;
    } else {
      cout << a << '/' << b << '=' << c << endl;
    }
  }
}

// Q4 进化论
void Q4() {
  int n;
  cin >> n;
  int a[n], b[n], c[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i] >> b[i] >> c[i];
  }
  for (int i = 0; i < n; i++) {
    if (c[i] == a[i] * b[i]) {
      cout << "Lv Yan" << endl;
    } else if (c[i] == a[i] + b[i]) {
      cout << "Tu Dou" << endl;
    } else {
      cout << "zhe du shi sha ya!" << endl;
    }
  }
}

// Q5 药房管理
#include <algorithm>
void Q5() {
  int m, n, c = 0;
  cin >> m >> n;
  int yao[n];
  for (int i = 0; i < n; i++) {
    cin >> yao[i];
  }
  sort(yao, yao + n);
  while (m > 0) {
    m -= yao[c];
    cout << m << ' ';
    if (m >= 0) {
      c++;
    }
  }
  cout << '\n';
  cout << n - c << endl;
}

#endif